<script lang="ts" setup>
import { onBeforeMount } from 'Vue';
import { useRoute,useRouter } from 'vue-router'  
const route = useRoute();
const router = useRouter();
onBeforeMount(()=>{
    const { params, query } = route
    const { path } = params
    router.replace({ path: '/' + path, query })
}) 
</script>
